package converter;

import entity.Address;
import org.springframework.core.convert.converter.Converter;

public class AddressToStringConverter implements Converter<Address,String> {
    @Override
    public String convert(Address address) {
        return address.getProvince()+"-"+address.getCity();
    }
}
